package com.htd.htdapmservice.dao;

import java.util.List;
import java.util.Map;
import com.htd.htdapmcommon.mybatis.DalBaseDao;
import com.htd.htdapmdmo.AlarmsInfo;
import com.htd.htdapmdmo.OneAlertAlarmsRecordInfo;


public interface AlarmsInfoDao extends DalBaseDao<AlarmsInfo> {

    public AlarmsInfo getInfoById(int id);

    public List<AlarmsInfo> getInfoByAlarmsId(String alarmsId);

    /**
	 * 保存调用创建告警API时输入的参数到数据库
	 * 
	 */
	public int saveAlarmInto(AlarmsInfo alarmsInfo);


	/**
	 * 批量保存调用创建告警API时输入的参数到数据库
	 *
	 */
	public int batchSaveAlarmInto(List<AlarmsInfo> alarmsInfos);

	/**
	 * 根据发送状态查找
	 * @param sendStatus
	 * @return
	 */
	public List<AlarmsInfo> getAlarmsInfoListBySendStatus(String sendStatus);

	public int updateSendStatusByAlarmsId(Map<String, Object> paramMap);

	public int updateAlarmsStatusById(Map<String, Object> paramMap);

	/**
	 * 同步表“one_alert_alarms_record”中status的状态到表“alarms_info”
	 * @param sendStatus
	 * @return
	 */
	public void updateAlarmInfoStatus(List<OneAlertAlarmsRecordInfo> oneAlertAlarmsRecordInfoList);
	
	public List<AlarmsInfo> getAlarmsInfoListByAlarmStatus();
	
	public void batchUpdate(List<AlarmsInfo> alarmsInfos);


}
